<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>收费项目</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="description" content="This is my page">
	<link rel="shortcut icon" href="<%=basePath%>favicon.ico" type="image/x-icon" />
	<link rel="stylesheet" type="text/css" href="<%=basePath%>style/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath%>style/themes/icon.css">
	<script type="text/javascript" src="<%=basePath%>javascript/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="<%=basePath%>javascript/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="<%=basePath%>javascript/pub.js"></script>
	<script type="text/javascript" src="<%=basePath%>pages/basic/js/Charge.js"></script>
	<script type="text/javascript" src="<%=basePath%>javascript/locale/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript" src="<%=basePath%>javascript/easyui_pub.js"></script>
	<script>window.onerror=hide_error_message;function hide_error_message(){return true;}</script>	
	<style>
		body,html{
			padding:0;
			margin:0;
			height:100%;
		}  
		
		#layout{
			height: 100%;
			width:100%;
			border-top: none;
			border-bottom: none;
		}
	</style>
	
  </head>
  <body>
    <div class="easyui-layout" fit="true" id="layout" cellspacing="10"> 
    <div region="north" class="datagrid-toolbar" style="height:30px;background-color:#efefef;" fit="false" onselectstart="return false">
        <a onclick="Reload()" class="easyui-linkbutton" iconCls="icon-reload" plain="true">刷新</a>	
		<a onclick="add()" class="easyui-linkbutton" iconCls="icon-add" plain="true">新增</a>
		<a onclick="update()" class="easyui-linkbutton" iconCls="icon-edit" plain="true">修改</a>
		<a onclick="setjc()" class="easyui-linkbutton" iconCls="icon-tip" plain="true">级长设置</a>
		<a onclick="deleteOne()" class="easyui-linkbutton" iconCls="icon-no" plain="true">删除</a>
		<a onclick="QryConndition()" class="easyui-linkbutton" iconCls="icon-search" plain="true">查询</a>			
	</div>		
<!---------------------------------------收费项目树---------------------------------------------->	    
	<div region="west" split="true" style="width: 180px;" fit="false" id="ChgrTree" onselectstart="return false" onmouseover="TreeshowScroll()" onmouseout="TreehideScroll()">
		<ul id="ChargeTree" class="easyui-tree"></ul>
	</div>		
<!---------------------------------------收费项目树---------------------------------------------->

<!---------------------------------------显示列表---------------------------------------------->
		<div region="center" title="" style="background:#fafafa;" onselectstart="return false" onmouseover="showScroll()" onmouseout="hideScroll(event,this)">
            <table id="grid"></table>
		</div>
<!---------------------------------------显示列表---------------------------------------------->
	</div>
	
	
	
	
<!---------------------------------------------------- 增加 --------------------------------------------------------->
<div style="display:none;padding: 20px;" id="addDig">
			<form method="post" id="addForm" name="addForm">
				<table align="center" cellspacing="5" style="line-height: 25px;font-size:13px;" bgcolor="#FFFFFF">
				<tr>
	                <td height="25" align="right" bgcolor="#FFFFFF">项目编码</td>
	                <td bgcolor="#FFFFFF"><input id="addCODE" name="F_CODE" 
	                 required="true" missingMessage="必填" class="easyui-validatebox" maxlength="50"/><font style="color:#FF0000">*</font></td>
	                 <td height="25" align="right" bgcolor="#FFFFFF">项目名称</td>
	                 <td bgcolor="#FFFFFF"><input id="addNAME" name="F_NAME" validType=checkEmptyName[]
	                  required="true" missingMessage="必填" maxlength="60" class="easyui-validatebox"/><font style="color:#FF0000">*</font></td>	                 
	            </tr>  
	          	<tr>
					<td height="25" align="right" bgcolor="#FFFFFF">助记符</td>
	                 <td bgcolor="#FFFFFF"><input id="addMNEM" name="F_MNEM" maxlength="60" validType=length[0,120]
	                 class="easyui-validatebox"/></td>	 	          	
	                 <td height="25" align="right" bgcolor="#FFFFFF">计量单位</td>
	                 <td bgcolor="#FFFFFF"><input id="addMSRUNIT" name="F_MSRUNIT" validType=length[0,15] maxlength="15" 
	                 class="easyui-validatebox"/></td>	 
	          	</tr>
  	            <tr>
	                <td height="25" align="right" bgcolor="#FFFFFF">收费依据</td>
	                <td bgcolor="#FFFFFF"><input id="addFEEGIST" name="F_FEEGIST" maxlength="40" validType=length[0,40] 
	                 class="easyui-validatebox"/></td>	   
					     <td height="25" align="right" bgcolor="#FFFFFF">收费性质</td>
	                 <td bgcolor="#FFFFFF">
						 <select id="addCHRGATTR" name="F_CHRGATTR" style="width:156px; height:22px">
							 <option value="预算内">预算内</option>
							 <option value="预算外">预算外</option>
							 <option value="其他">其他</option>							
						 </select>
					 </td>	              
	             
	            </tr>	   
	            <tr>
	            <td height="25" align="right" bgcolor="#FFFFFF">上缴比例</td>
	                <td bgcolor="#FFFFFF"><input id="addPAYRATIO" name="F_PAYRATIO" style="width:150px;"/>&nbsp;%</td>
					<td height="25" align="right" bgcolor="#FFFFFF">是否代收</td>
	                 <td bgcolor="#FFFFFF"><input id="addISCOLL" name="F_ISCOLL" type="checkbox"
	                  class="easyui-validatebox"/></td>	                 
	            </tr>
				<td>分成比例</td>          
	                <td bgcolor="#ffffff" colspan="3">
					    <table width="96%" border="0" cellpadding="0" cellspacing="0" bordercolor="#95d4df" style="font-size:12px;">
							<tr>
								<td height="20" align="center" style="border:0px;">中央</td>
							    <td align="center" style="border:0px;"><input style="width:60px;" name="F_DIVIRATIO1" id="addDIVI1"/></td>
								<td align="center" style="border:0px;">省</td>
								<td align="center" style="border:0px;"><input style="width:60px;" name="F_DIVIRATIO2" id="addDIVI2"/></td>						
								<td height="20" align="center" style="border:0px;">市</td>
								<td align="center" style="border:0px;"><input style="width:60px;" name="F_DIVIRATIO3" id="addDIVI3"/></td>
								<td align="center" style="border:0px;">县</td>
								<td align="center" style="border:0px;"><input style="width:60px;" name="F_DIVIRATIO4" id="addDIVI4"/></td>						
						</tr>
					  </table>
					</td>				
	            </tr>               
				</table>
			</form>
		</div>
<!---------------------------------------------------- 增加 --------------------------------------------------------->	

<!---------------------------------------------------- 修改 --------------------------------------------------------->
<div style="display:none;padding: 20px;" id="updateDig">
			<form method="post" id="updateForm" name="updateForm">
		<input id="editID" name="F_ID" style="display:none"/>
				<table align="center" cellspacing="5" style="line-height: 25px;font-size:13px;" bgcolor="#FFFFFF">			
				<tr>
	                <td height="25" align="right" bgcolor="#FFFFFF">项目编码</td>
	                <td bgcolor="#FFFFFF"><input id="editCODE" name="F_CODE" 
	                 required="true" missingMessage="必填" validType=length[0,50] maxlength="50" class="easyui-validatebox"/><font style="color:#FF0000">*</font></td>
	                 <td height="25" align="right" bgcolor="#FFFFFF">项目名称</td>
	                 <td bgcolor="#FFFFFF"><input id="editNAME" name="F_NAME"  validType=checkEmptyName[]
	                  required="true" missingMessage="必填" validType=length[0,60] maxlength="60" class="easyui-validatebox"/><font style="color:#FF0000">*</font></td>	                 
	            </tr>  
	          	<tr>	               
	             	<td height="25" align="right" bgcolor="#FFFFFF">助记符</td>
	                 <td bgcolor="#FFFFFF"><input id="editMNEM" name="F_MNEM" maxlength="60" validType=length[0,60]
	                 class="easyui-validatebox"/></td>	 
	                 <td height="25" align="right" bgcolor="#FFFFFF">计量单位</td>
	                 <td bgcolor="#FFFFFF"><input id="editMSRUNIT" name="F_MSRUNIT" maxlength="15" validType=length[0,15]
	                 class="easyui-validatebox"/></td>  
	            </tr>
  	            <tr>
	                <td height="25" align="right" bgcolor="#FFFFFF">收费依据</td>
	                <td bgcolor="#FFFFFF"><input id="editFEEGIST" name="F_FEEGIST" maxlength="40" /></td>	                 
	                 <td height="25" align="right" bgcolor="#FFFFFF">收费性质</td>
	                 <td bgcolor="#FFFFFF">
						 <select id="editCHRGATTR" name="F_CHRGATTR" style="width:156px; height:22px">
							 <option value="预算内">预算内</option>
							 <option value="预算外">预算外</option>
							 <option value="其他">其他</option>							
						 </select>
					 </td>	
	            </tr>
	            <tr>	 
	            <td height="25" align="right" bgcolor="#FFFFFF">上缴比例</td>
	                <td bgcolor="#FFFFFF"><input id="editPAYRATIO" name="F_PAYRATIO" style="width:150px;"/>&nbsp;%</td>           	            
	                 <td height="25" align="right" bgcolor="#FFFFFF">是否代收</td>
	                 <td bgcolor="#FFFFFF"><input id="editISCOLL" name="F_ISCOLL" type="checkbox"
	                  class="easyui-validatebox"/></td>  
	            </tr>
	            <tr>
	            <td></td>
	            <td colspan="3"></td>	           
	            </tr>
				<tr>	      
				<td>分成比例</td>          
	                <td bgcolor="#ffffff" colspan="3">
					    <table width="96%" border="0" cellpadding="0" cellspacing="0" bordercolor="#95d4df" style="font-size:12px;">
							<tr>
								<td height="20" align="center" style="border:0px;">中央</td>
							  <td align="center" style="border:0px;"><input style="width:60px;" name="F_DIVIRATIO1" id="edtDIVI1"></td>
								<td align="center" style="border:0px;">省</td>
								<td align="center" style="border:0px;"><input style="width:60px;" name="F_DIVIRATIO2" id="edtDIVI2"></td>
						
								<td height="20" align="center" style="border:0px;">市</td>
								<td align="center" style="border:0px;"><input style="width:60px;" name="F_DIVIRATIO3" id="edtDIVI3"/></td>
								<td align="center" style="border:0px;">县</td>
								<td align="center" style="border:0px;"><input style="width:60px;" name="F_DIVIRATIO4" id="edtDIVI4"></td>						
						</tr>
					  </table>
					</td>				
	            </tr>  	               
				</table>
				<input id="editLASTTIME" name="F_LASTTIME" style="display:none"/>
			</form>
		</div>
<!---------------------------------------------------- 修改 --------------------------------------------------------->	

<!---------------------------------------------------- 删除 --------------------------------------------------------->
	<form id="deleteForm" name="deleteForm" method="post" style="display: none;">
		<input name="F_ID" id="delId" type="hidden" />
	</form>	
<!---------------------------------------------------- 删除 --------------------------------------------------------->	

<!---------------------------------------------------- 查询 --------------------------------------------------------->	
		<div style="display: none; padding: 20px; font-size:14px;" id="queryDig">
			<form method="post" id="queryForm" name="queryForm">
				<table align="center" cellspacing="5" style="line-height: 25px;font-size:14px">
					<tr>
						<td align="right">
							编码
						</td>
						<td>
							<input name="F_CODE" id="code" style="width: 212px;"
								class="easyui-validatebox" />
						</td>
					</tr>
					<tr>
						<td align="right">
							名称
						</td>
						<td>
							<input name="F_NAME" id="name" style="width: 212px;"
								class="easyui-validatebox" />
						</td>
					</tr>	
				</table>
			</form>
		</div>		
<!---------------------------------------------------- 查询 --------------------------------------------------------->		
<!---------------------------------------------------- 设置级长 --------------------------------------------------------->	
		<div style="display: none; padding: 20px; font-size:14px;" id="SetJCDig">
			<form method="post" id="SetJCForm" name="SetJCForm">
				<table align="center" cellspacing="5" style="line-height: 25px;font-size:14px;">
					<tr>
						<td align="right">
							级长
						</td>
						<td>
							<input name="F_ITEM1" id="codeLen" validType=checkEmptyCode[] style="width: 212px;" required="true" missingMessage="必填"
								class="easyui-validatebox" /><font style="color:#FF0000">*</font>
						</td>
					</tr>

				</table>
			</form>
		</div>		
<!---------------------------------------------------- 设置级长 --------------------------------------------------------->	
  </body>
</html>

